<%-- 
    Document   : main
    Created on : 7-dec-2009, 23:16:05
    Author     : Simon
--%>
<%-- ${pageContext.request.contextPath} --%>
<%@include file="../header.jsp" %>

<h1>Patient file of ${patientname}</h1>

<c:if test="${!empty flash}">
    <div class="flash notice">${flash}</div>
</c:if>

<table>
    <tr>
        <td>
            Name:
        </td>
        <td>
            ${patient.firstname} ${patient.surname}
        </td>
    </tr>
    <tr>
        <td>
            Social security nr:
        </td>
        <td>
            ${patient.socialSecurityNumber}
        </td>
    </tr>
    <tr>
        <td>
            Nr of prescriptions:
        </td>
        <td>
            <a href="${pageContext.request.contextPath}/gp/patient/prescriptions">${nrPrescriptions}</a>
        </td>
    </tr>
    <tr>
        <td>
            Username:
        </td>
        <td>
            ${patient.username}
        </td>
    </tr>
    <tr>
        <td>
            Last consultation:
        </td>
        <td>
            <fmt:formatDate value="${patient.lastConsultation}" pattern="dd MMM yyyy HH:mm" />
        </td>
    </tr>
    <tr>
        <td>
            Next consultation:
        </td>
        <td>
            <fmt:formatDate value="${patient.nextConsultation}" pattern="dd MMM yyyy HH:mm" />
        </td>
    </tr>
    <tr>
        <td>
            Birthdate:
        </td>
        <td>
            <fmt:formatDate value="${patient.birthDate}" pattern="dd MMM yyyy" />
        </td>
    </tr>
    <tr>
        <td>
            Bloodgroup:
        </td>
        <td>
            ${patient.bloodgroup}
        </td>
    </tr>
    <tr>
        <td>
            Address:
        </td>
        <td>
            ${location.street} ${location.number} <br/>
            ${location.zipcode} ${location.town} <br />
            ${location.country}

        </td>
    </tr>
    <tr>
        <td>
            Phone nr:
        </td>
        <td>
            ${location.phoneNumber}
        </td>
    </tr>
    <tr>
        <td>
            E-mail:
        </td>
        <td>
            ${location.email}
        </td>
    </tr>

</table>

<%@include file="../footer.jsp" %>


